#include "asm_utils.h"
#include "stdio.h"
#include "os_modules.h"
#include "sync.h"

SpinLock::SpinLock()	{
    	initialize();
}
void SpinLock::initialize()	{
    	bolt=0;
}
void SpinLock::lock()	{
    	while (bolt) {;}
    	bolt=1;
}
void SpinLock::unlock()	{
    	bolt=0;
}

